from langchain.llms import OpenAI
import os

# 使用OpenAI的api，并且安装sdk: pip install openai
# os.environ["OPENAI_API_KEY"] = "sk-xxx"

# 我们可以用任何参数初始化包装器，我们以温度初始化他
llm = OpenAI(temperature=0.9)
text = "What would be a good company name for a company that makes colorful socks?"
print(llm(text))
